import {AxiosPromise} from "axios";
import request from "@/utils/request";


/**
 * 获取模块下拉选项
 */
export function getModuleSelection(): AxiosPromise<OptionType[]> {
  return request({
    url: "/api/v1/common/modules",
    method: "get"
  });
}

/**
 * 获取业务类型下拉选项
 */
export function getBizTypeSelection(): AxiosPromise<OptionType[]> {
  return request({
    url: "/api/v1/common/businessTypes",
    method: "get"
  });
}
